package com.mvp.lt.airlineview.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * $activityName
 * 主页广告详情
 *
 * @author LiuTao
 * @date 2019/3/29/029
 */


public class AdDetailBean implements Parcelable {
    /**
     * advertising_id : 105
     * user_id : 50
     * title_image : https://upload-images.jianshu.io/upload_images/2162321-8efb591565748251.jpg
     * title : 导航到店
     * type : 12
     * publish_type : 0
     * publish_time : 2019-04-13 13:45:27
     * spread_type : 1
     * spread_area : 2
     * phone : 1008611
     * one_gold : 6.00
     * num : 998
     * all_gold : 6000.00
     * content : 导航到店领蛋糕
     * head_content : ["/storage/emulated/0/Aquantum/com.uav.dji.quantum/screenShotPointOrg/org_270_86_mmmppp_1_1_2019-04-11_15-27-29_.jpg","/storage/emulated/0/Aquantum/com.uav.dji.quantum/screenShotPointOrg/org_270_86_mmmppp_1_2_2019-04-11_15-27-43_.jpg","/storage/emulated/0/Aquantum/com.uav.dji.quantum/screenShotPointOrg/org_270_86_vvvv_1_2_2019-04-11_15-23-33_.jpg"]
     * create_time : 2019-04-13 13:47:24
     * update_time : 2019-04-13 13:47:24
     * state : 1
     * address :
     * sort : 0
     * is_hot : 0
     * second : 8
     * ad_type : 1
     * lat : 28.181160
     * lon : 113.037641
     * sex : 1
     * age_begin : 19
     * age_end : 58
     * has_get_number : 2
     * last_get_time : 2019-04-13 15:09:16
     * is_collection : 1
     * is_attention : 1
     * user : {"icon":"/storage/emulated/0/tencent/MicroMsg/WeiXin/mmexport1554217834270.jpg","user_id":50,"name":"中南海有限公司","business_license":["/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-50-06-471_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-43-11-067_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-55-06-657_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-50-09-393_com.paiwujie.robredpacket.png"],"check_state":0}
     * checks : {"check_id":77,"advertising_id":105,"user_id":73,"check_time":"2019-04-13 13:49:05","is_delete":"","remark":"","check_type":1,"check_user":{"user_id":73,"name":"蔡浩家"}}
     */

    private int advertising_id;
    private int user_id;
    private String title_image;
    private String title;
    private int type;
    private int publish_type;
    private String publish_time;
    private int spread_type;
    private String spread_area;
    private String phone;
    private String one_gold;
    private int num;
    private String all_gold;
    private String content;
    private String create_time;
    private String update_time;
    private int state;
    private String address;
    private int sort;
    private int is_hot;
    private int second;
    private int ad_type;
    private String lat;
    private String lon;
    private int sex;
    private int age_begin;
    private int age_end;
    private int has_get_number;
    private String last_get_time;
    private int is_collection;
    private int is_attention;
    private UserBean user;
    private ChecksBean checks;
    private List<String> head_content;

    public AdDetailBean() {
    }

    protected AdDetailBean(Parcel in) {
        advertising_id = in.readInt();
        user_id = in.readInt();
        title_image = in.readString();
        title = in.readString();
        type = in.readInt();
        publish_type = in.readInt();
        publish_time = in.readString();
        spread_type = in.readInt();
        spread_area = in.readString();
        phone = in.readString();
        one_gold = in.readString();
        num = in.readInt();
        all_gold = in.readString();
        content = in.readString();
        create_time = in.readString();
        update_time = in.readString();
        state = in.readInt();
        address = in.readString();
        sort = in.readInt();
        is_hot = in.readInt();
        second = in.readInt();
        ad_type = in.readInt();
        lat = in.readString();
        lon = in.readString();
        sex = in.readInt();
        age_begin = in.readInt();
        age_end = in.readInt();
        has_get_number = in.readInt();
        last_get_time = in.readString();
        is_collection = in.readInt();
        is_attention = in.readInt();
        head_content = in.createStringArrayList();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(advertising_id);
        dest.writeInt(user_id);
        dest.writeString(title_image);
        dest.writeString(title);
        dest.writeInt(type);
        dest.writeInt(publish_type);
        dest.writeString(publish_time);
        dest.writeInt(spread_type);
        dest.writeString(spread_area);
        dest.writeString(phone);
        dest.writeString(one_gold);
        dest.writeInt(num);
        dest.writeString(all_gold);
        dest.writeString(content);
        dest.writeString(create_time);
        dest.writeString(update_time);
        dest.writeInt(state);
        dest.writeString(address);
        dest.writeInt(sort);
        dest.writeInt(is_hot);
        dest.writeInt(second);
        dest.writeInt(ad_type);
        dest.writeString(lat);
        dest.writeString(lon);
        dest.writeInt(sex);
        dest.writeInt(age_begin);
        dest.writeInt(age_end);
        dest.writeInt(has_get_number);
        dest.writeString(last_get_time);
        dest.writeInt(is_collection);
        dest.writeInt(is_attention);
        dest.writeStringList(head_content);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AdDetailBean> CREATOR = new Creator<AdDetailBean>() {
        @Override
        public AdDetailBean createFromParcel(Parcel in) {
            return new AdDetailBean(in);
        }

        @Override
        public AdDetailBean[] newArray(int size) {
            return new AdDetailBean[size];
        }
    };

    public int getAdvertising_id() {
        return advertising_id;
    }

    public void setAdvertising_id(int advertising_id) {
        this.advertising_id = advertising_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getTitle_image() {
        return title_image;
    }

    public void setTitle_image(String title_image) {
        this.title_image = title_image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPublish_type() {
        return publish_type;
    }

    public void setPublish_type(int publish_type) {
        this.publish_type = publish_type;
    }

    public String getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(String publish_time) {
        this.publish_time = publish_time;
    }

    public int getSpread_type() {
        return spread_type;
    }

    public void setSpread_type(int spread_type) {
        this.spread_type = spread_type;
    }

    public String getSpread_area() {
        return spread_area;
    }

    public void setSpread_area(String spread_area) {
        this.spread_area = spread_area;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOne_gold() {
        return one_gold;
    }

    public void setOne_gold(String one_gold) {
        this.one_gold = one_gold;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getAll_gold() {
        return all_gold;
    }

    public void setAll_gold(String all_gold) {
        this.all_gold = all_gold;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getIs_hot() {
        return is_hot;
    }

    public void setIs_hot(int is_hot) {
        this.is_hot = is_hot;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public int getAd_type() {
        return ad_type;
    }

    public void setAd_type(int ad_type) {
        this.ad_type = ad_type;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge_begin() {
        return age_begin;
    }

    public void setAge_begin(int age_begin) {
        this.age_begin = age_begin;
    }

    public int getAge_end() {
        return age_end;
    }

    public void setAge_end(int age_end) {
        this.age_end = age_end;
    }

    public int getHas_get_number() {
        return has_get_number;
    }

    public void setHas_get_number(int has_get_number) {
        this.has_get_number = has_get_number;
    }

    public String getLast_get_time() {
        return last_get_time;
    }

    public void setLast_get_time(String last_get_time) {
        this.last_get_time = last_get_time;
    }

    public int getIs_collection() {
        return is_collection;
    }

    public void setIs_collection(int is_collection) {
        this.is_collection = is_collection;
    }

    public int getIs_attention() {
        return is_attention;
    }

    public void setIs_attention(int is_attention) {
        this.is_attention = is_attention;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public ChecksBean getChecks() {
        return checks;
    }

    public void setChecks(ChecksBean checks) {
        this.checks = checks;
    }

    public List<String> getHead_content() {
        return head_content;
    }

    public void setHead_content(List<String> head_content) {
        this.head_content = head_content;
    }

    public static class UserBean {
        /**
         * icon : /storage/emulated/0/tencent/MicroMsg/WeiXin/mmexport1554217834270.jpg
         * user_id : 50
         * name : 中南海有限公司
         * business_license : ["/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-50-06-471_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-43-11-067_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-55-06-657_com.paiwujie.robredpacket.png","/storage/emulated/0/DCIM/Screenshots/Screenshot_2019-04-01-14-50-09-393_com.paiwujie.robredpacket.png"]
         * check_state : 0
         */

        private String icon;
        private int user_id;
        private String name;
        private int check_state;
        private List<String> business_license;

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getCheck_state() {
            return check_state;
        }

        public void setCheck_state(int check_state) {
            this.check_state = check_state;
        }

        public List<String> getBusiness_license() {
            return business_license;
        }

        public void setBusiness_license(List<String> business_license) {
            this.business_license = business_license;
        }
    }

    public static class ChecksBean {
        /**
         * check_id : 77
         * advertising_id : 105
         * user_id : 73
         * check_time : 2019-04-13 13:49:05
         * is_delete :
         * remark :
         * check_type : 1
         * check_user : {"user_id":73,"name":"蔡浩家"}
         */

        private int check_id;
        private int advertising_id;
        private int user_id;
        private String check_time;
        private String is_delete;
        private String remark;
        private int check_type;
        private CheckUserBean check_user;

        public int getCheck_id() {
            return check_id;
        }

        public void setCheck_id(int check_id) {
            this.check_id = check_id;
        }

        public int getAdvertising_id() {
            return advertising_id;
        }

        public void setAdvertising_id(int advertising_id) {
            this.advertising_id = advertising_id;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getCheck_time() {
            return check_time;
        }

        public void setCheck_time(String check_time) {
            this.check_time = check_time;
        }

        public String getIs_delete() {
            return is_delete;
        }

        public void setIs_delete(String is_delete) {
            this.is_delete = is_delete;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getCheck_type() {
            return check_type;
        }

        public void setCheck_type(int check_type) {
            this.check_type = check_type;
        }

        public CheckUserBean getCheck_user() {
            return check_user;
        }

        public void setCheck_user(CheckUserBean check_user) {
            this.check_user = check_user;
        }

        public static class CheckUserBean {
            /**
             * user_id : 73
             * name : 蔡浩家
             */

            private int user_id;
            private String name;

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }

    @Override
    public String toString() {
        return "AdDetailBean{" +
                "advertising_id=" + advertising_id +
                ", user_id=" + user_id +
                ", title_image='" + title_image + '\'' +
                ", title='" + title + '\'' +
                ", type=" + type +
                ", publish_type=" + publish_type +
                ", publish_time='" + publish_time + '\'' +
                ", spread_type=" + spread_type +
                ", spread_area='" + spread_area + '\'' +
                ", phone='" + phone + '\'' +
                ", one_gold='" + one_gold + '\'' +
                ", num=" + num +
                ", all_gold='" + all_gold + '\'' +
                ", content='" + content + '\'' +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", sort=" + sort +
                ", is_hot=" + is_hot +
                ", second=" + second +
                ", ad_type=" + ad_type +
                ", lat='" + lat + '\'' +
                ", lon='" + lon + '\'' +
                ", sex=" + sex +
                ", age_begin=" + age_begin +
                ", age_end=" + age_end +
                ", has_get_number=" + has_get_number +
                ", last_get_time='" + last_get_time + '\'' +
                ", is_collection=" + is_collection +
                ", is_attention=" + is_attention +
                ", user=" + user +
                ", checks=" + checks +
                ", head_content=" + head_content +
                '}';
    }
}
